package net.oschina.app.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import net.oschina.app.interf.IUIOperation;

/**
 * Created by Shinelon on 2017/1/13.
 */

public abstract class BaseActivity extends AppCompatActivity implements IUIOperation{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutRes());
        initView();
        initData();
        initListener();
    }

    public abstract int getLayoutRes();

    public abstract void initView();

    public abstract void initListener();

    public abstract void initData();

}
